package cn.wzc.crystal.platform.query.config;

import com.github.drinkjava2.jdialects.DialectType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "crystal.query")
public class QueryProperties {

	/**
	 * SQL 文件存放位置, 可选择[classpath|file]
	 */
	private String resourceDir = "classpath:/query";

	/**
	 * SQL 文件后缀 默认 .sql
	 */
	private String templateStuff = ".sql";

	/**
	 * 是否进行缓存,如果开启,则缓存文件夹中的 SQL 文件
	 */
	private boolean cacheable = false;


	/**
	 * 数据库方言
	 */
	private DialectType dialect = DialectType.MySQL8Dialect;

}
